home *** CD-ROM | disk | FTP | other *** search
- Path: cs.tu-berlin.de!news
- From: Olaf Lenzmann <olafbaje@sp.zrz.tu-berlin.de>
- Newsgroups: comp.lang.c++
- Subject: [RE] BC4.52 & static linkage
- Date: Thu, 01 Feb 1996 10:37:18 +0100
- Organization: Technical University of Berlin, Germany
- Message-ID: <311089CE.611BE976@sp.zrz.tu-berlin.de>
- NNTP-Posting-Host: basta.cs.tu-berlin.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (X11; I; Linux 1.2.12 i586)
-
- Hi there !
-
- I have written a bunch of classes that I want to incorporate
- into a DLL. One of the classes is derived from fstream :
-
- class _export MyStream : public fstream
- {...};
-
- When I compile the DLL with dynamic linkage (of the standard
- libraries), everything works fine. But if I try to specify
- static linkage, the linker gives me an undefined reference
- each time fstream or one of its base classes if referenced.
-
- W*H*Y ? (Static linking of all the modules to an EXE instead
- of a DLL works).
-
- Thanx,
- olaf
-
- * Please mail your reply to me, since I don't have continous *
- * access to this newgroup. *
-